import React from "react";
import ReactDOM from "react-dom/client";
// 设置别名
import { HashRouter as Router } from "react-router-dom";

import App from "./App";
import "./index.css";

const root = ReactDOM.createRoot(
  document.getElementById("root") as HTMLElement
);

/**
 * Route 必须包裹在 Router（路由器下面）
 *  将 Router 全局包裹一次即可
 */
root.render(
  <Router>
    <App />
  </Router>
);
